Skip to contentMethod: createSymbol(String, Position)
      1: /**
2:  * 
3:  */
4: package scanner;
5: 
6: import model.Position;
7: import symbols.AbstractSymbol;
8: import symbols.ValueSymbol;
9: 
10: /**
11:  * This class represents the second Block (the value block).
12:  * 
13:  * @author Hendrik
14:  * 
15:  */
16: public class ValueBlock extends DescriptionBlock {
17: 
18:         /**
19:          * constructor.
20:          */
21:         protected ValueBlock() {
22:                 super();
23:         }
24: 
25:         @Override
26:         protected scanner.DescriptionBlock next() {
27: 
28:                 return new PathBlock();
29:         }
30: 
31:         @Override
32:         protected AbstractSymbol createSymbol(final String collectedContent, final Position position) {
33:                 return new ValueSymbol(collectedContent, position);
34:         }
35: 
36: }